import 'package:ble_helper_plugin/library.dart';
import 'package:inmotion_pro/service/realtime_data_server/realtime_data_service.dart';

// BaseBusiness类
abstract class BaseBusiness {
  // 车辆蓝牙连接成功
  Future<bool> vehicleBluetoothConnectSuccess(CustomScanResult scanResult);

  // 开启轮询 to 获取车辆实时数据
  Future<bool> startLoopToGetVehicleRealTimeData({
    required List<(PollingTimerType, int)> pollingTypes,
  });

  // 停止轮询 to 获取车辆实时数据
  Future<bool> stopLoopToGetVehicleRealTimeData();

  // 建立安全连接
  Future<bool> buildSafeConnection();
}
